LiteDAC

TCustomDADataSet.FindKey Method

Searches for a record which contains specified field values.

Class

TCustomDADataSet

Syntax

function FindKey(const KeyValues: array of System.TVarRec): Boolean;

Parameters
KeyValues
Holds a key.

Remarks

Call the FindKey method to search for a specific record in a dataset. KeyValues holds a comma-delimited array of field values, that is called a key.

This function is provided for BDE compatibility only. It is recommended to use functions TMemDataSet.Locate and TMemDataSet.LocateEx for the record search.

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback